#ifndef PRODUCTIONDETAILDIALOG_H
#define PRODUCTIONDETAILDIALOG_H

#include <QDialog>
#include <QSqlDatabase>
#include <QSqlError>  // 添加这个头文件
#include <QDate>

namespace Ui {
class ProductionDetailDialog;
}

class ProductionDetailDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ProductionDetailDialog(int employeeId, const QString &toyName, const QString &processName, 
                                   const QString &startDate, const QString &endDate, QWidget *parent = nullptr);
    ~ProductionDetailDialog();

private slots:
    void onSearch();
    void onReset();
    void onExport();

private:
    Ui::ProductionDetailDialog *ui;
    int m_employeeId;
    QString m_toyName;
    QString m_processName;
    QString m_startDate;
    QString m_endDate;
    
    void loadInitialData();
    void setupUI();
};

#endif // PRODUCTIONDETAILDIALOG_H